import request from '@/utils/processRequest';

// 获取表头
export function getHeader(data) {
  return request({
    url: '/xProduce/header',
    method: 'post',
    data
  });
}
// 获取数据
export function getData(data) {
  return request({
    url: '/xProduce/pubBudgetTree',
    method: 'post',
    data
  });
}
// 下载
export function exportExcel(data) {
  return request({
    url: '/xProduce/exportExcel',
    method: 'post',
    data,
    responseType: 'blob' // 返回格式，默认json，可选arraybuffer、blob、document、json、text、stream
  });
}
